package akaram.claws.tests;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;

import akaram.claws.compiler.Scanner;
import junit.framework.TestCase;

public class ScannerTest extends TestCase {
	
	private String compilation_file_test = "samples/ejemplo-prog-1.clw";
	
	public void testScannerInitialization() {
		FileInputStream fis;
		try {
			Scanner scanner = new Scanner("skjdksj dskjds");
			fail("Should be failed because of not existent file.");
		} catch (FileNotFoundException e) {
			try {
				Scanner scanner = new Scanner(compilation_file_test);
			} catch (FileNotFoundException e1) {
				fail("No test file.");
			}
		}
	}

}
